package com.siyu.basedata.iothlpoint.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.iothlpoint.mapper.IotHLPointMapper;
import com.siyu.basedata.iothlpoint.domain.IotHLPoint;
import com.siyu.basedata.iothlpoint.service.IIotHLPointService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.iothlpoint.mapper.IotHLPointMapper;
import com.siyu.basedata.iothlpoint.domain.IotHLPoint;
import com.siyu.basedata.iothlpoint.service.IIotHLPointService;

/**
 * 水文测站基本信息Service业务层处理
 *
 * @author hrhy
 * @date 2024-06-20
 */
@Service
public class IotHLPointServiceImpl extends ServiceImpl<IotHLPointMapper, IotHLPoint> implements IIotHLPointService {
    @Autowired
    private IotHLPointMapper iotHLPointMapper;

    /**
     * 查询水文测站基本信息
     *
     * @param id 水文测站基本信息主键
     * @return 水文测站基本信息
     */
    @Override
    public IotHLPoint selectIotHLPointById(String id) {
        return iotHLPointMapper.selectIotHLPointById(id);
    }

    /**
     * 查询水文测站基本信息列表
     *
     * @param iotHLPoint 水文测站基本信息
     * @return 水文测站基本信息
     */
    @Override
    public List<IotHLPoint> selectIotHLPointList(IotHLPoint iotHLPoint) {
        return iotHLPointMapper.selectIotHLPointList(iotHLPoint);
    }

    /**
     * 新增水文测站基本信息
     *
     * @param iotHLPoint 水文测站基本信息
     * @return 结果
     */
    @Override
    public int insertIotHLPoint(IotHLPoint iotHLPoint) {
        return iotHLPointMapper.insertIotHLPoint(iotHLPoint);
    }

    /**
     * 修改水文测站基本信息
     *
     * @param iotHLPoint 水文测站基本信息
     * @return 结果
     */
    @Override
    public int updateIotHLPoint(IotHLPoint iotHLPoint) {
        return iotHLPointMapper.updateIotHLPoint(iotHLPoint);
    }

    /**
     * 批量删除水文测站基本信息
     *
     * @param ids 需要删除的水文测站基本信息主键
     * @return 结果
     */
    @Override
    public int deleteIotHLPointByIds(String[] ids) {
        return iotHLPointMapper.deleteIotHLPointByIds(ids);
    }

    /**
     * 删除水文测站基本信息信息
     *
     * @param id 水文测站基本信息主键
     * @return 结果
     */
    @Override
    public int deleteIotHLPointById(String id) {
        return iotHLPointMapper.deleteIotHLPointById(id);
    }
}


